# 求解1~100能被3和5同时整除的数字之和
total = 0
for i in range(1, 101):
    # if i % 15 == 0:
    if i % 3 == 0 and i % 5 == 0:
        total += i
print(f"1~100能被3和5同时整除的数字之和:{total}")
